<?php
    use yii\widgets\ActiveForm;
    use yii\helpers\Html;
?>
<div class="form">
    <h2 class="text-center">后台登录 - <small><a href="../../frontend/web/">返回前台</a></small></h2>
    <div class="clear"> </div>
    <?php
        $form = ActiveForm::begin([
            'class' => 'form-horizontal login-form',
            'action' => ['site/loginin'],
            'method' => 'post',
        ]);?>
    <div class="form-group">
        <?= $form->field($model, 'username')->fileInput(['type'=>'text', 'class'=> "form-control", "placeholder" => "管理员"]) ?>
        <?= $form->field($model, 'password')->fileInput(['type'=>'password', 'class'=> "form-control", "style" => "margin-top:-20px", "placeholder" => "后台登录密码"]) ?>
        <?= Html::submitButton('登录', ['class' => 'btn btn-primary btn-block']) ?>
    </div>
    <?php ActiveForm::end(); ?>
</div>
